{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# How to create subgraphs\n",
    "\n",
    "Graphs such as [StateGraph](https://langchain-ai.github.io/langgraph/reference/graphs/#langgraph.graph.StateGraph)'s naturally can be composed. Creating subgraphs lets you build things like [multi-agent teams](./multi_agent/hierarchical_agent_teams.ipynb), where each team can track its own separate state.\n",
    "\n",
    "You can add a `StateGraph` instance as a node by first [compiling](https://langchain-ai.github.io/langgraph/reference/graphs/#langgraph.graph.MessageGraph.compile) it to translate it to its lower-level Pregel operations.\n",
    "\n",
    "The main thing you should note is ensuring the \"handoff\" from the calling graph to the called graph behaves as expected.\n",
    "\n",
    "Below are a couple of examples showing how to do so!\n",
    "\n",
    "First, install LangGraph."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "%%capture --no-stderr\n",
    "%pip install -U langgraph"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Optionally, we can set API key for [LangSmith tracing](https://smith.langchain.com/), which will give us best-in-class observability."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import getpass\n",
    "import os\n",
    "\n",
    "\n",
    "def _set_env(var: str):\n",
    "    if not os.environ.get(var):\n",
    "        os.environ[var] = getpass.getpass(f\"{var}: \")\n",
    "\n",
    "\n",
    "os.environ[\"LANGCHAIN_TRACING_V2\"] = \"true\"\n",
    "_set_env(\"LANGCHAIN_API_KEY\")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Create Parent + Child Graphs\n",
    "\n",
    "For this example, we will create two graphs: a parent graph with a few nodes, and a child graph that is added as a node in the parent.\n",
    "\n",
    "For this example we will use the same `State` in both graphs, though we will show how using the same keys can be a stumbling block if you're not careful."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "from typing import Annotated\n",
    "\n",
    "from typing_extensions import TypedDict\n",
    "\n",
    "from langgraph.graph import StateGraph\n",
    "\n",
    "\n",
    "def reduce_list(left: list | None, right: list | None) -> list:\n",
    "    if not left:\n",
    "        left = []\n",
    "    if not right:\n",
    "        right = []\n",
    "    return left + right\n",
    "\n",
    "\n",
    "class ChildState(TypedDict):\n",
    "    name: str\n",
    "    path: Annotated[list[str], reduce_list]\n",
    "\n",
    "\n",
    "class ParentState(TypedDict):\n",
    "    name: str\n",
    "    path: Annotated[list[str], reduce_list]\n",
    "\n",
    "\n",
    "child_builder = StateGraph(ChildState)\n",
    "\n",
    "child_builder.add_node(\"child_start\", lambda state: {\"path\": [\"child_start\"]})\n",
    "child_builder.set_entry_point(\"child_start\")\n",
    "child_builder.add_node(\"child_middle\", lambda state: {\"path\": [\"child_middle\"]})\n",
    "child_builder.add_node(\"child_end\", lambda state: {\"path\": [\"child_end\"]})\n",
    "child_builder.add_edge(\"child_start\", \"child_middle\")\n",
    "child_builder.add_edge(\"child_middle\", \"child_end\")\n",
    "child_builder.set_finish_point(\"child_end\")\n",
    "\n",
    "builder = StateGraph(ParentState)\n",
    "\n",
    "builder.add_node(\"grandparent\", lambda state: {\"path\": [\"grandparent\"]})\n",
    "builder.set_entry_point(\"grandparent\")\n",
    "builder.add_node(\"parent\", lambda state: {\"path\": [\"parent\"]})\n",
    "builder.add_node(\"child\", child_builder.compile())\n",
    "builder.add_node(\"sibling\", lambda state: {\"path\": [\"sibling\"]})\n",
    "builder.add_node(\"fin\", lambda state: {\"path\": [\"fin\"]})\n",
    "\n",
    "# Add connections\n",
    "builder.add_edge(\"grandparent\", \"parent\")\n",
    "builder.add_edge(\"parent\", \"child\")\n",
    "builder.add_edge(\"parent\", \"sibling\")\n",
    "builder.add_edge(\"child\", \"fin\")\n",
    "builder.add_edge(\"sibling\", \"fin\")\n",
    "builder.set_finish_point(\"fin\")\n",
    "graph = builder.compile()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     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Kyd9hznTE8xPRxc7oOg36ALn8LwE0Lp+5Fbo4V8dyOvLUbZkvWJZTBI3ldEXvkJLNu5hJDT1aAeq7DyhkPvbzfqo+knlDIfe3m/VR9JNXq4FufRfFGqr8ONO1amlqsWO5YNL8oxDO3kPi3LCYR15t3/AFtxb5/N379/Vc6/wduHr84csNPCO54+zKARXLDIW2mPD2ythbIIw7mAJIb16g7gldv5QyH3t5v1UfSTyhkPvbzfqo+kmr1cA50XvaIo0d4NWn6uYzeY1Pjq+WyVrUdzM1eS3O6BrJJjJCZISWxukaD3lrtvQSur1NwK0LrDL38nmMBHds5BgjttdYmbDY2bytdJE14Y57RsA8t5m7DYjYLZ1+IdS3qy3piHG5STP1KzLk9AVfrkcLjs1569xPRbnyhkPvbzfqo+kmr1cDClQStdGFhND4XTuWnydCo6K/PTr0JZ3zySOfDBzdk087j1HO7zu879SVoYuBuh6+rHakhwbYMq60LznRWZmQusd/bGAP7Iv3683Lvv13XV+UMh97eb9VH0k8oZD72836qPpJq9XAlpKOKNJb4WaXvaf1DhJ8Xz4vUFqS5koPGJR28z+XndzB3M3fkb0aQOncvbNcMdNag1bj9T3cc52dotYyG5DZlhcWtfzta8MeBI0O6hrw4dT06rc+UMh97eb9VH0l9IpMzb82tpjKOf6DOIoW/lLnj+wFY1erxXqjDqUcUZFmzFSrS2J5GwwRNL3yPOzWtA3JJ+JdPw5w0+Ow1i5cifBdyc5tyQye+ibytZGw/EQxjSR6HF34Th4HQtma1Fez74ZDC8SQY6uS6Fjgd2vkcQDI5pG46BrT12JDXDt1LZTi4p3b3/AI7+Ry8qyhVfYhuCIiqOcEREAREQBERAEREAREQBERAEREAREQBERAEREBXfSfw69d/0OoftyrEKu+k/h167/odQ/blWIQBERAEREAREQBERAEREAREQBERAEREAREQBERAEREAREQBERAEREBXfSfw69d/0OoftyrEKu+k/h167/odQ/blWIQBERAEREAREQBERAEREAREQBERAEREAREQBERAEREAREQBEXzmnirRmSaRkUY73PcAB+UoD6KNvCO19qPhd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XuMTJsBZe9rN/NDnC6ATttuQBv8QXydjOKJPm6l0gBsO/T1o9fT/55a9liaGYuZev4O/W64T/6gYv8M37Z65nEx34sbXZk569nIBgE8tSF0MT3ektY57y0fMXH8K6bhP8A6gYv8M37Z67OQf4qnxj/APR6L+F/tU+X3OuREW6epCIiAIiIAiIgCIiAIiIAiIgCIiAIiIAuP4oU7dvAVDTqTXpIL9ed0NdvM8sa/ckBdginCWbJMjJKScXxIl8pX/vbzfqo+knlK/8Ae3m/VR9JS0i1tWybkfU4/hGS+fX9ES+Ur/3t5v1UfSTylf8Avbzfqo+kpaRNWybkfUeEZL59f0RL5Sv/AHt5v1UfSTylf+9vN+qj6SlpE1bJuR9R4Rkvn1/REvlK/wDe3m/VR9JPKV/72836qPpKWkTVsm5H1HhGS+fX9ES+Ur/3t5v1UfSXZ8NKNnG6Ixle5Xkq2GiQuhlGzm7yOIB/IQunRXQjTpxcacbXtxvuv+TdybI6WS30d9oREQ3QiIgCIiAIiID/2Q==",
      "text/plain": [
       "<IPython.core.display.Image object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "from IPython.display import Image, display\n",
    "\n",
    "# Setting xray to 1 will show the internal structure of the nested graph\n",
    "display(Image(graph.get_graph(xray=1).draw_mermaid_png()))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\u001b[36;1m\u001b[1;3m[0:tasks]\u001b[0m \u001b[1mStarting step 0 with 1 task:\n",
      "\u001b[0m- \u001b[32;1m\u001b[1;3m__start__\u001b[0m -> {'name': 'test'}\n",
      "\u001b[36;1m\u001b[1;3m[0:writes]\u001b[0m \u001b[1mFinished step 0 with writes to 1 channel:\n",
      "\u001b[0m- \u001b[33;1m\u001b[1;3mname\u001b[0m -> 'test'\n",
      "\u001b[36;1m\u001b[1;3m[0:checkpoint]\u001b[0m \u001b[1mState at the end of step 0:\n",
      "\u001b[0m{'name': 'test', 'path': []}\n",
      "\u001b[36;1m\u001b[1;3m[1:tasks]\u001b[0m \u001b[1mStarting step 1 with 1 task:\n",
      "\u001b[0m- \u001b[32;1m\u001b[1;3mgrandparent\u001b[0m -> {'name': 'test', 'path': []}\n",
      "\u001b[36;1m\u001b[1;3m[1:writes]\u001b[0m \u001b[1mFinished step 1 with writes to 1 channel:\n",
      "\u001b[0m- \u001b[33;1m\u001b[1;3mpath\u001b[0m -> ['grandparent']\n",
      "\u001b[36;1m\u001b[1;3m[1:checkpoint]\u001b[0m \u001b[1mState at the end of step 1:\n",
      "\u001b[0m{'name': 'test', 'path': ['grandparent']}\n",
      "\u001b[36;1m\u001b[1;3m[2:tasks]\u001b[0m \u001b[1mStarting step 2 with 1 task:\n",
      "\u001b[0m- \u001b[32;1m\u001b[1;3mparent\u001b[0m -> {'name': 'test', 'path': ['grandparent']}\n",
      "\u001b[36;1m\u001b[1;3m[2:writes]\u001b[0m \u001b[1mFinished step 2 with writes to 1 channel:\n",
      "\u001b[0m- \u001b[33;1m\u001b[1;3mpath\u001b[0m -> ['parent']\n",
      "\u001b[36;1m\u001b[1;3m[2:checkpoint]\u001b[0m \u001b[1mState at the end of step 2:\n",
      "\u001b[0m{'name': 'test', 'path': ['grandparent', 'parent']}\n",
      "\u001b[36;1m\u001b[1;3m[3:tasks]\u001b[0m \u001b[1mStarting step 3 with 2 tasks:\n",
      "\u001b[0m- \u001b[32;1m\u001b[1;3mchild\u001b[0m -> {'name': 'test', 'path': ['grandparent', 'parent']}\n",
      "- \u001b[32;1m\u001b[1;3msibling\u001b[0m -> {'name': 'test', 'path': ['grandparent', 'parent']}\n",
      "\u001b[36;1m\u001b[1;3m[3:writes]\u001b[0m \u001b[1mFinished step 3 with writes to 2 channels:\n",
      "\u001b[0m- \u001b[33;1m\u001b[1;3mname\u001b[0m -> 'test'\n",
      "- \u001b[33;1m\u001b[1;3mpath\u001b[0m -> ['grandparent', 'parent', 'child_start', 'child_middle', 'child_end'], ['sibling']\n",
      "\u001b[36;1m\u001b[1;3m[3:checkpoint]\u001b[0m \u001b[1mState at the end of step 3:\n",
      "\u001b[0m{'name': 'test',\n",
      " 'path': ['grandparent',\n",
      "          'parent',\n",
      "          'grandparent',\n",
      "          'parent',\n",
      "          'child_start',\n",
      "          'child_middle',\n",
      "          'child_end',\n",
      "          'sibling']}\n",
      "\u001b[36;1m\u001b[1;3m[4:tasks]\u001b[0m \u001b[1mStarting step 4 with 1 task:\n",
      "\u001b[0m- \u001b[32;1m\u001b[1;3mfin\u001b[0m -> {'name': 'test',\n",
      " 'path': ['grandparent',\n",
      "          'parent',\n",
      "          'grandparent',\n",
      "          'parent',\n",
      "          'child_start',\n",
      "          'child_middle',\n",
      "          'child_end',\n",
      "          'sibling']}\n",
      "\u001b[36;1m\u001b[1;3m[4:writes]\u001b[0m \u001b[1mFinished step 4 with writes to 1 channel:\n",
      "\u001b[0m- \u001b[33;1m\u001b[1;3mpath\u001b[0m -> ['fin']\n",
      "\u001b[36;1m\u001b[1;3m[4:checkpoint]\u001b[0m \u001b[1mState at the end of step 4:\n",
      "\u001b[0m{'name': 'test',\n",
      " 'path': ['grandparent',\n",
      "          'parent',\n",
      "          'grandparent',\n",
      "          'parent',\n",
      "          'child_start',\n",
      "          'child_middle',\n",
      "          'child_end',\n",
      "          'sibling',\n",
      "          'fin']}\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "{'name': 'test',\n",
       " 'path': ['grandparent',\n",
       "  'parent',\n",
       "  'grandparent',\n",
       "  'parent',\n",
       "  'child_start',\n",
       "  'child_middle',\n",
       "  'child_end',\n",
       "  'sibling',\n",
       "  'fin']}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "graph.invoke({\"name\": \"test\"}, debug=True)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Notice here that the `[\"grandparent\", \"parent\"]` sequence is duplicated! This is because our child state has received the full parent state and returns the full parent state once it terminates. To avoid duplication or conflicts in state, you typically would do one or more of the following:\n",
    "\n",
    "1. Handle duplicates in your `reducer` function.\n",
    "2. Call the child graph from within a python function. In that function, handle the state as needed.  \n",
    "3. Update the child graph keys to avoid conflicts. You would still need to ensure the output can be interpreted by the parent, however.\n",
    "\n",
    "Let's re-implement the graph using technique (1) and add unique IDs for every value in the list. This is what is done in [`MessageGraph`](https://langchain-ai.github.io/langgraph/reference/graphs/#langgraph.graph.MessageGraph)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [],
   "source": [
    "import uuid\n",
    "\n",
    "\n",
    "def reduce_list(left: list | None, right: list | None) -> list:\n",
    "    \"\"\"Append the right-hand list, replacing any elements with the same id in the left-hand list.\"\"\"\n",
    "    if not left:\n",
    "        left = []\n",
    "    if not right:\n",
    "        right = []\n",
    "    left_, right_ = [], []\n",
    "    for orig, new in [(left, left_), (right, right_)]:\n",
    "        for val in orig:\n",
    "            if not isinstance(val, dict):\n",
    "                val = {\"val\": val}\n",
    "            if \"id\" not in val:\n",
    "                val[\"id\"] = str(uuid.uuid4())\n",
    "            new.append(val)\n",
    "    # Merge the two lists\n",
    "    left_idx_by_id = {val[\"id\"]: i for i, val in enumerate(left_)}\n",
    "    merged = left_.copy()\n",
    "    for val in right_:\n",
    "        if (existing_idx := left_idx_by_id.get(val[\"id\"])) is not None:\n",
    "            merged[existing_idx] = val\n",
    "        else:\n",
    "            merged.append(val)\n",
    "    return merged\n",
    "\n",
    "\n",
    "class ChildState(TypedDict):\n",
    "    name: str\n",
    "    path: Annotated[list[str], reduce_list]\n",
    "\n",
    "\n",
    "class ParentState(TypedDict):\n",
    "    name: str\n",
    "    path: Annotated[list[str], reduce_list]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [],
   "source": [
    "child_builder = StateGraph(ChildState)\n",
    "\n",
    "child_builder.add_node(\"child_start\", lambda state: {\"path\": [\"child_start\"]})\n",
    "child_builder.set_entry_point(\"child_start\")\n",
    "child_builder.add_node(\"child_middle\", lambda state: {\"path\": [\"child_middle\"]})\n",
    "child_builder.add_node(\"child_end\", lambda state: {\"path\": [\"child_end\"]})\n",
    "child_builder.add_edge(\"child_start\", \"child_middle\")\n",
    "child_builder.add_edge(\"child_middle\", \"child_end\")\n",
    "child_builder.set_finish_point(\"child_end\")\n",
    "\n",
    "builder = StateGraph(ParentState)\n",
    "\n",
    "builder.add_node(\"grandparent\", lambda state: {\"path\": [\"grandparent\"]})\n",
    "builder.set_entry_point(\"grandparent\")\n",
    "builder.add_node(\"parent\", lambda state: {\"path\": [\"parent\"]})\n",
    "builder.add_node(\"child\", child_builder.compile())\n",
    "builder.add_node(\"sibling\", lambda state: {\"path\": [\"sibling\"]})\n",
    "builder.add_node(\"fin\", lambda state: {\"path\": [\"fin\"]})\n",
    "\n",
    "# Add connections\n",
    "builder.add_edge(\"grandparent\", \"parent\")\n",
    "builder.add_edge(\"parent\", \"child\")\n",
    "builder.add_edge(\"parent\", \"sibling\")\n",
    "builder.add_edge(\"child\", \"fin\")\n",
    "builder.add_edge(\"sibling\", \"fin\")\n",
    "builder.set_finish_point(\"fin\")\n",
    "graph = builder.compile()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/jpeg": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAACh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UVRVTM5ZxMc4mF1muLdyKp6musowuwZvRxUmQ2WgvdLFJzscNfTtmYx+hG8A4EA6EjX61Wv8A4f8AZnpp0AxvTvexcP8AKto+1VQ+GL357/RPaqofDF789/osOPwqumMovfFrzjbM7ZpULG9lGF4dchcLFilms9eGGMVNDQxxSbp6xvNAOh0VrUl7VVD4Yvfnv9E9qqh8MXvz3+ijP4TNW2bscpSjHWo2REo1FrTlLUtbsvxrE62xXu6Rz3LKLdaagz1HOAwTPcJABpwOg4HuLbvtVUPhi9+e/wBF55H/APLHKXvlC1wlDVtFT3KiqKSrhjqaWojdFLDK0OZIxw0c1wPAggkEKjjYBszaQRgOOAjiCLXCCP8A2raPtVUPhi9+e/0T2qqHwxe/Pf6KUfhVVO69EfpKM46zVvpaxg2C7N6WeOaHA8dimjcHsey2QhzXA6gg7vAqd2gfEPI/J1R+G5XH2qqHwxe/Pf6LyrNj1ruFJNS1N0vM1PMx0ckbq3g5pGhB4d0K+z+GzReouV3c9GYndPVLzptmImIhe0RFqsIREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQc78tr4k7P/8AHVm/EcuiFzvy2viTs/8A8dWb8Ry6IQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREHO/La+JOz//AB1ZvxHLohc78tr4k7P/APHVm/EcuiEBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERARRl+yKgxqkbUV8/Nh7tyKJjS+SZ+mu6xg4uOgJ0A4AEngCVT5toN+q3E0VjpqOHhum41ZMpH1sja4D/AFn12026qoz3R79n+11Fqu55sNhota9M8u/RrJ/qmTpnl36NZP8AVMpaqO1HNb0S9wbKRa16Z5d+jWT/AFTJ0zy79Gsn+qZNVHajmdEvcHym5bWwo7DNuN0pqKnEOOXnW52vcboyON7jvwjuDm37zQP7u4T1ru//AKb2xObZlsWkyW4Rvhu+XvjrTE4+4pGBwp+HVq4Pe/XuiRveUlygtkM3KNtdhosjgtkHsRXtq4p6V0g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eHa/XqCtZ8r2z0V25PGYOraWKpNJTCpgMrdeblDgA9veIDiNfrK3LlFsOL36esI3bRc5Q4yaaNp6k6NIce4JO13SeG/qNdXsBwrtaKG/W6e33Oip7jQVDdyalq4myxSN7zmuBBH61Zf23JudVW377n0luYvWco4ZNMZJhNhxLbrsbbZrTSWxsUF1pGCmjDN2FtOXtjGn5odI86d9xWr8Kxi22TZdsoy+ipzBks+XwUU1yEjjNJTyV00D4CSf7Pc0G57kaa6arreptFDWV9HXVFFTz1tHv9jVMkTXSQb43X7jiNW7w4HTrHWsWPErHDbqO3x2W3soKOdtVTUraWMRQTB5eJGN00a8OJcHDjqSetc2b2bWczMfe76JVZWzxjnZrkkrf7IUVDESO68PqXEfua9v+YUbXVrKCHnHtfI5xDI4Ym70krz1Na3uk/8A+4K6YPj0uP2mQ1e6bjWTOqqos6g4gBrAe6Gsaxuvd3de6uq3+WiqqevZ4xPyc+NriLeh1ysSIiqYQiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIgIiICIiAiIg8qmmhrKeWnqImTwSsLJIpWhzXtI0IIPAgjuKkVuzWppXl1kvDqaEkkUlwiNTG36mu3mvA+olw7g0Gml8RWU3KqNkbuayi5VbnOmcnPW2DJsi2P2ix19XFa7ky6XqksrGwc4wsfO4tDzrrwGnEK/MwbKZyGyXS0Uje6+OllmP7gXtH+ev7+pa+5bXxJ2f8A+OrN+I5dEKet4UxyX9LvcVbxzBqKw1PZss09zue7u9mVZGrAesRsaA1g/UNTw1J0VkRFXVVNc51OaqqapzqkREUERERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQc78tr4k7P8A/HVm/EcuiFzvy2viTs//AMdWb8Ry6IQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREHO/La+JOz/APx1ZvxHLohfInlcbZttWJbTrhguV5bJc6CyXWK7WmWS2UcXOBhL6afVkLd4gO4ji3eDgQdF2tyB882o7VdnN2y/aLfvZiir6psFmjN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QWsA3Rpw0HDgtrLTmz6pOxDHJ7Vlz56q63G6V91L8ftFfXU4bPUPkA3o4XbpG97lx1+s9asft5Yv/6OSf8A7Vun/wDWUK6ZmqZpjYpu0VV3KqqKdmfU2Av1hPyg3XyXT/izKu4pnVrzM1QtrLkzsbd5z2QtNVQ672um7z8TN/3J13ddOGumo1sWE/KDdfJdP+LMtDARMXKs+zPxho/hUTTispjqlsZERab7UREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREGjcKvdugxW2xyV9LHI2IBzHzNBB1PWNVNdILX4So/t2+tbEdi9mc4k2ihJPEk0zOP+ydFbL4HoPNmepU3cLYu3KrkzO2Znq63z9z8HouVzXpztnPd/lrvpBa/CVH9u31p0gtfhKj+3b61sTorZfA9B5sz1J0Vsvgeg82Z6lV0Kx2p8FfkSj2k8v8ALXfSC1+EqP7dvrTpBa/CVH9u31rYnRWy+B6DzZnqTorZfA9B5sz1J0Kx2p8DyJR7SeX+Wu+kFr8JUf27fWnSC1+EqP7dvrWxOitl8D0HmzPUnRWy+B6DzZnqToVjtT4HkSj2k8v8td9ILX4So/t2+tZmz+tp67P7s+mniqGi2U4LonhwB52bhwV46K2XwPQebM9SyaK00NtLzR0VPSl+gcYIms3v16BdFmxasTNVMzMzGXU68L+G04W5rIqz/RloiKbZEREBERAREQEREBERB//Z",
      "text/plain": [
       "<IPython.core.display.Image object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "from IPython.display import Image, display\n",
    "\n",
    "# Setting xray to 1 will show the internal structure of the nested graph\n",
    "display(Image(graph.get_graph(xray=1).draw_mermaid_png()))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\u001b[36;1m\u001b[1;3m[0:tasks]\u001b[0m \u001b[1mStarting step 0 with 1 task:\n",
      "\u001b[0m- \u001b[32;1m\u001b[1;3m__start__\u001b[0m -> {'name': 'test'}\n",
      "\u001b[36;1m\u001b[1;3m[0:writes]\u001b[0m \u001b[1mFinished step 0 with writes to 1 channel:\n",
      "\u001b[0m- \u001b[33;1m\u001b[1;3mname\u001b[0m -> 'test'\n",
      "\u001b[36;1m\u001b[1;3m[0:checkpoint]\u001b[0m \u001b[1mState at the end of step 0:\n",
      "\u001b[0m{'name': 'test', 'path': []}\n",
      "\u001b[36;1m\u001b[1;3m[1:tasks]\u001b[0m \u001b[1mStarting step 1 with 1 task:\n",
      "\u001b[0m- \u001b[32;1m\u001b[1;3mgrandparent\u001b[0m -> {'name': 'test', 'path': []}\n",
      "\u001b[36;1m\u001b[1;3m[1:writes]\u001b[0m \u001b[1mFinished step 1 with writes to 1 channel:\n",
      "\u001b[0m- \u001b[33;1m\u001b[1;3mpath\u001b[0m -> ['grandparent']\n",
      "\u001b[36;1m\u001b[1;3m[1:checkpoint]\u001b[0m \u001b[1mState at the end of step 1:\n",
      "\u001b[0m{'name': 'test',\n",
      " 'path': [{'id': '79a81f03-d16d-4d12-94a6-4ba29fc9ce49', 'val': 'grandparent'}]}\n",
      "\u001b[36;1m\u001b[1;3m[2:tasks]\u001b[0m \u001b[1mStarting step 2 with 1 task:\n",
      "\u001b[0m- \u001b[32;1m\u001b[1;3mparent\u001b[0m -> {'name': 'test',\n",
      " 'path': [{'id': '79a81f03-d16d-4d12-94a6-4ba29fc9ce49', 'val': 'grandparent'}]}\n",
      "\u001b[36;1m\u001b[1;3m[2:writes]\u001b[0m \u001b[1mFinished step 2 with writes to 1 channel:\n",
      "\u001b[0m- \u001b[33;1m\u001b[1;3mpath\u001b[0m -> ['parent']\n",
      "\u001b[36;1m\u001b[1;3m[2:checkpoint]\u001b[0m \u001b[1mState at the end of step 2:\n",
      "\u001b[0m{'name': 'test',\n",
      " 'path': [{'id': '79a81f03-d16d-4d12-94a6-4ba29fc9ce49', 'val': 'grandparent'},\n",
      "          {'id': '2a6f0263-3949-4e47-a210-57f817e6097d', 'val': 'parent'}]}\n",
      "\u001b[36;1m\u001b[1;3m[3:tasks]\u001b[0m \u001b[1mStarting step 3 with 2 tasks:\n",
      "\u001b[0m- \u001b[32;1m\u001b[1;3mchild\u001b[0m -> {'name': 'test',\n",
      " 'path': [{'id': '79a81f03-d16d-4d12-94a6-4ba29fc9ce49', 'val': 'grandparent'},\n",
      "          {'id': '2a6f0263-3949-4e47-a210-57f817e6097d', 'val': 'parent'}]}\n",
      "- \u001b[32;1m\u001b[1;3msibling\u001b[0m -> {'name': 'test',\n",
      " 'path': [{'id': '79a81f03-d16d-4d12-94a6-4ba29fc9ce49', 'val': 'grandparent'},\n",
      "          {'id': '2a6f0263-3949-4e47-a210-57f817e6097d', 'val': 'parent'}]}\n",
      "\u001b[36;1m\u001b[1;3m[3:writes]\u001b[0m \u001b[1mFinished step 3 with writes to 2 channels:\n",
      "\u001b[0m- \u001b[33;1m\u001b[1;3mname\u001b[0m -> 'test'\n",
      "- \u001b[33;1m\u001b[1;3mpath\u001b[0m -> [{'id': '79a81f03-d16d-4d12-94a6-4ba29fc9ce49', 'val': 'grandparent'},\n",
      " {'id': '2a6f0263-3949-4e47-a210-57f817e6097d', 'val': 'parent'},\n",
      " {'id': 'd1c1bab0-6e19-4846-a470-e9cc2eb85088', 'val': 'child_start'},\n",
      " {'id': 'e0fcb647-1e9e-4ae4-b560-0046515d5783', 'val': 'child_middle'},\n",
      " {'id': '669dd810-360f-4694-a9f3-49597f23376a', 'val': 'child_end'}], ['sibling']\n",
      "\u001b[36;1m\u001b[1;3m[3:checkpoint]\u001b[0m \u001b[1mState at the end of step 3:\n",
      "\u001b[0m{'name': 'test',\n",
      " 'path': [{'id': '79a81f03-d16d-4d12-94a6-4ba29fc9ce49', 'val': 'grandparent'},\n",
      "          {'id': '2a6f0263-3949-4e47-a210-57f817e6097d', 'val': 'parent'},\n",
      "          {'id': 'd1c1bab0-6e19-4846-a470-e9cc2eb85088', 'val': 'child_start'},\n",
      "          {'id': 'e0fcb647-1e9e-4ae4-b560-0046515d5783', 'val': 'child_middle'},\n",
      "          {'id': '669dd810-360f-4694-a9f3-49597f23376a', 'val': 'child_end'},\n",
      "          {'id': '137dbc2f-b33c-4ea4-8b04-a62215ba9718', 'val': 'sibling'}]}\n",
      "\u001b[36;1m\u001b[1;3m[4:tasks]\u001b[0m \u001b[1mStarting step 4 with 1 task:\n",
      "\u001b[0m- \u001b[32;1m\u001b[1;3mfin\u001b[0m -> {'name': 'test',\n",
      " 'path': [{'id': '79a81f03-d16d-4d12-94a6-4ba29fc9ce49', 'val': 'grandparent'},\n",
      "          {'id': '2a6f0263-3949-4e47-a210-57f817e6097d', 'val': 'parent'},\n",
      "          {'id': 'd1c1bab0-6e19-4846-a470-e9cc2eb85088', 'val': 'child_start'},\n",
      "          {'id': 'e0fcb647-1e9e-4ae4-b560-0046515d5783', 'val': 'child_middle'},\n",
      "          {'id': '669dd810-360f-4694-a9f3-49597f23376a', 'val': 'child_end'},\n",
      "          {'id': '137dbc2f-b33c-4ea4-8b04-a62215ba9718', 'val': 'sibling'}]}\n",
      "\u001b[36;1m\u001b[1;3m[4:writes]\u001b[0m \u001b[1mFinished step 4 with writes to 1 channel:\n",
      "\u001b[0m- \u001b[33;1m\u001b[1;3mpath\u001b[0m -> ['fin']\n",
      "\u001b[36;1m\u001b[1;3m[4:checkpoint]\u001b[0m \u001b[1mState at the end of step 4:\n",
      "\u001b[0m{'name': 'test',\n",
      " 'path': [{'id': '79a81f03-d16d-4d12-94a6-4ba29fc9ce49', 'val': 'grandparent'},\n",
      "          {'id': '2a6f0263-3949-4e47-a210-57f817e6097d', 'val': 'parent'},\n",
      "          {'id': 'd1c1bab0-6e19-4846-a470-e9cc2eb85088', 'val': 'child_start'},\n",
      "          {'id': 'e0fcb647-1e9e-4ae4-b560-0046515d5783', 'val': 'child_middle'},\n",
      "          {'id': '669dd810-360f-4694-a9f3-49597f23376a', 'val': 'child_end'},\n",
      "          {'id': '137dbc2f-b33c-4ea4-8b04-a62215ba9718', 'val': 'sibling'},\n",
      "          {'id': 'a4328c5f-845a-43de-b3d7-53a39208e316', 'val': 'fin'}]}\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "{'name': 'test',\n",
       " 'path': [{'val': 'grandparent', 'id': '79a81f03-d16d-4d12-94a6-4ba29fc9ce49'},\n",
       "  {'val': 'parent', 'id': '2a6f0263-3949-4e47-a210-57f817e6097d'},\n",
       "  {'val': 'child_start', 'id': 'd1c1bab0-6e19-4846-a470-e9cc2eb85088'},\n",
       "  {'val': 'child_middle', 'id': 'e0fcb647-1e9e-4ae4-b560-0046515d5783'},\n",
       "  {'val': 'child_end', 'id': '669dd810-360f-4694-a9f3-49597f23376a'},\n",
       "  {'val': 'sibling', 'id': '137dbc2f-b33c-4ea4-8b04-a62215ba9718'},\n",
       "  {'val': 'fin', 'id': 'a4328c5f-845a-43de-b3d7-53a39208e316'}]}"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "graph.invoke({\"name\": \"test\"}, debug=True)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
